/// @tags:
#include <cstdio>
#include <functional>
#include <iostream>
#include <numeric>
#include <queue>

using std::cin, std::cout, std::endl;

namespace BlueQuantum {

constexpr int maxn = 100;

int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, m;
    cin >> n >> m;
    long long sum1 = 0, sum2 = 0;
    // std::priority_queue<int, std::vector<int>, std::greater<int>> q1, q2;
    for (int i = 1; i <= n; ++i) {
      int x;
      cin >> x;
      sum1 += x;
    }
    for (int i = 1; i <= m; ++i) {
      int x;
      cin >> x;
      sum2 += x;
    }
    cout << (sum1 == sum2 ? "Draw" : (sum1 > sum2 ? "Tsondu" : "Tenzing"))
         << endl;
  }
  return 0;
}

}  // namespace BlueQuantum

int main() {
#ifndef ONLINE_JUDGE
#ifdef LOCAL
  freopen("/tmp/CodeTmp/testdata.in", "r", stdin);
  freopen("/tmp/CodeTmp/testdata.out", "w", stdout);
#else
  freopen("A. Tenzing and Tsondu.in", "r", stdin);
  freopen("A. Tenzing and Tsondu.out", "w", stdout);
#endif
#endif

  std::ios::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
  return BlueQuantum::main();
}
